package com.shouer.doc.widget;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.ImageView;

import com.shouer.doc.R;

/**
 * Created by YYY-Work on 2017/9/28.
 */

public class VipSelectBox extends ImageView{

    private boolean mIsChecked;

    public VipSelectBox(Context context, AttributeSet attrs) {
        super(context, attrs);
        this.setImageResource(R.drawable.ico_xiyi_unread);
    }

    public void setChecked(boolean check) {
        this.mIsChecked = check;
        this.setImageResource(this.mIsChecked? R.drawable.ico_xiyi_read:R.drawable.ico_xiyi_unread);
    }

    public boolean getChecked() {
        return this.mIsChecked;
    }

}
